<%= simple_form_for([:admin, @guest_book], html: {class: 'layui-form'}) do |f| %>
  <%= f.error_notification %>

    <div class="layui-form-item">
      <%= f.label :phone, class: 'layui-form-label' %>
      <div class="layui-input-block">
        <%= f.input_field :phone, class: 'layui-input', autocomplete: 'off', placeholder: GuestBook.human_attribute_name(:phone) %>
      </div>
    </div>
    <div class="layui-form-item">
      <%= f.label :e_mail, class: 'layui-form-label' %>
      <div class="layui-input-block">
        <%= f.input_field :e_mail, class: 'layui-input', autocomplete: 'off', placeholder: GuestBook.human_attribute_name(:e_mail) %>
      </div>
    </div>
    <div class="layui-form-item">
      <%= f.label :name, class: 'layui-form-label' %>
      <div class="layui-input-block">
        <%= f.input_field :name, class: 'layui-input', autocomplete: 'off', placeholder: GuestBook.human_attribute_name(:name) %>
      </div>
    </div>
    <div class="layui-form-item">
      <%= f.label :content, class: 'layui-form-label' %>
      <div class="layui-input-block">
        <%= f.input_field :content, class: 'layui-input', autocomplete: 'off', placeholder: GuestBook.human_attribute_name(:content) %>
      </div>
    </div>
    <div class="layui-form-item">
      <%= f.label :admin_user_id, class: 'layui-form-label' %>
      <div class="layui-input-block">
        <%= f.input_field :admin_user_id, class: 'layui-input', autocomplete: 'off', placeholder: GuestBook.human_attribute_name(:admin_user_id) %>
      </div>
    </div>
    <div class="layui-form-item">
      <%= f.label :deleted_at, class: 'layui-form-label' %>
      <div class="layui-input-block">
        <%= f.input_field :deleted_at, class: 'layui-input', autocomplete: 'off', placeholder: GuestBook.human_attribute_name(:deleted_at) %>
      </div>
    </div>

  <div class="actions">
    <%= f.submit t('buttons.save'), data: { disable_with: "保存中..." }, class: 'layui-btn' %>
    <%= link_to t('buttons.cancel'), url_for(:back), class: 'layui-btn layui-btn-normal' %>
  </div>
<% end %>
